# Contributor: Maxim Karasev <mxkrsv@disroot.org>
# Maintainer: Maxim Karasev <mxkrsv@disroot.org>
pkgname=nvim-cmp-buffer
pkgver=0.0.0_git20220810
_commit=3022dbc9166796b644a841a02de8dd1cc1d311fa
pkgrel=0
pkgdesc="nvim-cmp source for buffer words"
url="https://github.com/hrsh7th/cmp-buffer"
arch="noarch"
license="MIT"
subpackages="$pkgname-doc"
depends="nvim-cmp"
source="https://github.com/hrsh7th/cmp-buffer/archive/$_commit/nvim-cmp-$pkgver.tar.gz"
builddir="$srcdir/cmp-buffer-$_commit"
options="!check" # no tests

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra after lua "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
6ecddcb31b87274f27bc19a3e33fd549bbab139acc65cc1239b3295f9e279207d35b542dcca40c03589097997bec681555861731cf3a09e8a292f34f5cbc2f11  nvim-cmp-0.0.0_git20220810.tar.gz
"
